music_table = \
(
 	("0", "0", "0", "0", "0", "0"),

 	("0", "0", "0", "0", "0", "0"),
 	("0", "0", "0", "0", "0", "0"),
 	# 3
 	("6-,3-,1-,6--", "-", "6-,3-,1-,6--", "-", "6-,6--", "7-,7--", "1,6-,4-,1-", "-", "1,6-,4-,1-", "-", "1,1-", "2,2-", "7-,5-,3-,7--", "-", "7-,5-,3-,7--", "-", "6-,6--", "5-,5--", "5-,5--", "6-, 6--", "-", "-", "3-,3--", "5-,5--"),
 	("6-,4-,1-,6--", "-", "6-,4-,1-,6--", "-", "6-,6--", "7-,7--", "1,5-,3-,1-", "-", "1,5-,3-,1-", "-", "1,1-", "2,2-", "7-,5-,2-,7--", "-", "7-,5-,2-,7--", "-", "6-,6--", "5-,5--", "6-,6--", "-", "-", "-", "3-,3--", "5-,5--"),
 	# 5
 	("6-,3-,1-,6--", "-", "6-,3-,1-,6--", "-", "6-,6--", "1,1-", "2,6-,4-,2-", "-", "2,6-,4-,2-", "-", "2,2-", "3,3-", "4,2,6-,4-", "-", "4,2,6-,4-", "-", "3,3-", "2,2-", "3,1,6-,3-", "6-, 6--", "-", "-", "6-,6--", "7-,7--"),
 	("1,6-,4-,1-", "-", "1,6-,4-,1-", "-", "2,2-", "-", "3,1,6-,3-", "6-,6--", "-", "-", "6-,6--", "1,1-", "7-,5-#,3-,7--", "-", "7-,5-#,3-,7--", "-", "1,1-", "6-,6--", "7-,5-#,3-,7--", "-", "0", "-", "3,3-", "5,5-"),
 	# 7
 	("6,3,1,6-", "-", "6,3,1,6-", "-", "6,6-", "7,7-",  "1+,6,4,1", "-", "1+,6,4,1", "-", "1+,1", "2+,2", "7,5,3,7-", "-", "7,5,3,7-", "-", "6,6-", "5,5-", "5,5-", "6,6-", "-", "-", "3,3-", "5,5-"),
 	("6,4,1,6-", "-", "6,4,1,6-", "-", "6,6-", "7,7-",  "1+,5,3,1", "-", "1+,5,3,1", "-", "1+,1", "2+,2", "7,5,2,7-", "-", "7,5,2,7-", "-", "6,6-", "5,5-", "6,6-", "-", "-", "-", "3,3-", "5,5-"),
 	
 	# 9
 	("6,3,1,6-", "-", "6,3,1,6-", "-", "6,6-", "1+,1",  "2+,6,4,2", "-", "2+,6,4,2", "-", "2+,2", "3+,3", "4+,2+,6,4", "-", "4+,2+,6,4", "-", "3+,3", "2+,2", "3+,1+,6,3", "6,6-", "-", "-", "6,6-", "7,7-"),
 	("1+,6,4,1", "-", "1+,6,4,1", "-", "2+,2", "-",  "3+,1+,6,3", "6,6-", "-", "-", "6,6-", "1+,1", "7,5#,3,7-", "-", "7,5#,3,7-", "-", "6,6-", "5,5#-", "6,3,1,6-", "-", "6,3,1,6-", "-", "7,3,7-", "-"),
 	
 	# 11
    ("1+,6,4,1=1/8", "1+,6,4,1=1/16", "1+,6,4,1=1/16", "2+,6,4,2=1/8","3+,1+,6,3=1/8", "0=1/8", "1+,1=1/16", "6,6-=1/16", "3,3-=1/8", "3-=1/32", "6-=1/32", "1=1/32", "3=1/32", "6=1/32", "1+=1/32", "4+,1+,6,4=1/8"),
    ("0=1/8", "1+,1=1/16","6,6-=1/16", "4,4-=1/8", "0=1/16"),

 	# 13
 	("4-:6-:1:4:6:1+=1/32", "7,5#,3,7-:7,5#,3,7-:0:6,3,1,6-=1/16", "0:5#,3,7-,5-#=1/8", "0=1/16", "3-:6-:1:3:6:1+=1/32", "3+,1+,6,3:3+,1+,6,3:3+,1+,6,3=1/8", "4+,1+,6,4=1/16", "3+,1+,6,3=1/8"),

 	# 14
 	("0=3/16", "2+,6,4,2:2+,6,4,2:2+,6,4,2=1/8", "2+,6,4,2=1/16", "3+,1+,6,3=1/8", "0=3/16", "3+,1+,6,3:3+,1+,6,3:3+,1+,6,3=1/8", "4+,1+,6,4=1/16", "3+,1+,6,3=1/8"),

 	# 15
 	("0=3/16", "2+,6,4,2:1+,6,3,1:7,5#,3,7-:6,3,1,6-=1/8", "0=1/4", "3++,1++,6+,3+:0=1/16","0=1/4","4++:3++:1++:6+:4+:3+=1/32"),
 	
 	# 16
 	("1+:6:4:3:1:6-=1/32", "2,6-,4-,2-:0=1/16", "0=1/4", "2:3:4:6:2+:3:4+:6+:2++:3++:4++:6++=1/32", "3++,1++,6+,3+:0=1/16", "0=1/4", "4++:3++:1++:6+:4+:3+=1/32"),

 	# 17
 	("1+:6:4:3:1:6-=1/32", "2+,2:1+,1:7,7-=1/8", "6,6-=1/4", "6:7:0=1/16"),
 	("1+=1/4","2+,3+=1/16", "2+:1+:7:1+:2+:3+=1/8", "2+=1/4", "1+:2+=1/8"),

 	# 19
 	("3+=1/4", "2+:1+=1/16", "7:1+:7:6:6:5=1/8", "6=1/4", "6+,1+:7+,2+=1/16"),
 	("1++,3+=1/4", "7+:1++=1/16", "2++,7+:1++,6+:2++,7+:3++,5+:2++,4+:1++,3+=1/8", "6+,1+=1/4", "6+:7+=1/16"),

 	# 21
 	("1++:3+:2++:4+:3++:5+:4++:6+=1/16", "6+:2++,4+:1++,3+:0=1/8", "2++,4+:7+,2+=1/16", "6+,1+=1/8", "0:7+#,2+=1/16", "5+,7=1/8"),
 	("3+,1+,6,3:4+,2+,6,4=3/8", "3+,1+,5,3:3+,1+,5,3:3+,1+,5,3=1/8", "3+,1+,5,3=1/16", "2+,7,5,2=1/8","0=3/16"),

 	# 23
 	("2+,6,4,2:1+,6,3,1=3/8", "7,5#,3,7-:1+,6,3,1:7,5#,3,7-=1/8", "7,5#,3,7-=1/16", "6,3,1,6-=1/8","0=3/16"),
 	("3+,1+,6,3=3/16","6:7:1+=1/16", "4+,2+,6,4=3/16","6:7:1+=1/16", "3+,1+,5,3:3+,1+,5,3:3+,1+,5,3=1/8", "3+,1+,5,3=1/16", "2+,7,5,2=1/8", "0=3/16"),

 	#25
 	("2+,6,4,2:1+,6,3,1=3/8", "7,5#,3,7-:1+,6,3,1:7,5#,3,7-=1/8"),
 	("6,3,1,6-=1/16", "0=1/4", "0=1/16", "0=3/8", "0:0:0=1/4"),
 	("0:0:0:0:0:0=1/4"),

    # 28
    ("{'MOVE':1}", "3+=3/4", "3=1/8","5=1/8"),
    ("6,1=1/4", "6=1/8","7,3=1/8", "1+,6=1/4", "1+,6=1/8", "2+=1/8"),
    ("7,5=1/4", "6,2=1/8","5=1/8", "5,3=1/16", "6=3/16", "3=1/8", "5=1/8"),

    # 31
    ("6,1=1/4", "6=1/8", "7,3=1/8", "1+,6=1/4", "1+,6=1/4", "2+=1/4"),
    ("7,5=1/4", "6,2=1/8", "5=1/8", "6,4#=1/2"),
    ("4#=1/16", "2=1/16", "2+=1/16", "3+=1/16","4+#=1/8", "6+,1+=1/8"),

    # 34
    ("{'MOVE':2}", "4+,6=1/4", "4+,6=1/8","5+,7=1/8", "6+,1+=1/4","7+,2+=1/8","1++,3+=1/8"),
    ("2++,4+=1/4", "1++,3+=1/8","7+,2+=1/8", "1++,3+=1/16", "6+,1+=3/16", "6=1/8", "7=1/8"),
    ("1+=1/4", "1+,6=1/8","2+,7=1/8", "3+,1+=1/4", "6,3=1/8", "1+=1/8"),

    # 37
    ("7=3/4", "6=1/8", "5#=1/8"),
    ("6,1,6-=1/2", "7,4,7-=1/4", "1+,4,1=1/4"),
    ("2+,6,4#,2=3/4", "2+,2=1/8", "4+,4=1/8"),

    # 40
    ("3++,1++,6+,3+=1/24", "3+=1/24", "3++,1++=1/24", "2++,7+=1/24", "3+=1/24", "2++,7+=1/24",
      "1++,6+,1+=1/24", "3+=1/24", "1++,6+=1/24", "7+,5+,3+=1/24", "3+=1/24", "7+,5+=1/24",
      "1++,6+,4+=1/24", "1+=1/24", "1++,6+=1/24", "7+,5+=1/24", "1+=1/24", "7+,5+=1/24",
      "1++,6+,4+=1/24", "1+=1/24", "6+,4+=1/24", "2++,5+,3+=1/24", "1+=1/24", "5+,3+=1/24"),

)

music_table_left = \
(
 	("0", "0", "0", "0", "0", "0"),

    ("6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:6--,6---:6--,6---:6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:6--,6---:6--,6---=1/16",),
    ("6---,6----:0:6--,6---:6---, 6----:0:6--,6---:6---,6----:0:6--,6---:6---,6----:6--,6---:6---,6----:6---,6----:0:6--,6---:6---,6----:0:6--,6---:6---,6----:0:6--,6---:6---,6----:3-,3--:5-,5--=1/16",),

    # 3
 	("6---,6----:6---,6----:4--,4---:4--,4---:3--,3---:3--,3---:6---,6----:6---,6----=3/16",),
 	("4--,4---:4--,4---:1--,1---:1--,1---:5--,5---:5--,5---:6---,6----:6---,6----=3/16",),

    # 5
 	("6---,6----:6---,6----:4--,4---:4--,4---:2--,2---:2--,2---:6---,6----:6---,6----=3/16",),
 	("4--,4---:4--,4---:6---,6----:6---,6----:3--,3---:3--,3---:3--,3---:3---,3----=3/16",),

    # 7
 	("6---,6----:6--,3--,1--,6---:4--,4---:1-,6--,4--,1--:3--,3---:7--,5--,3--,2--:6---,6----:6--,3--,1--,6---=3/16",),
 	("4--,4---:1-,6--,4--,1--:1--,1---:1-,5--,3--,1--:5--,5---:7--,5--,3--,2--:6---,6----:6--,3--,1--,6---=3/16",),

    # 9
 	("6---,6----:6--,3--,1--,6---:4--,4---:2-,6--,4--,2--:2--,2---:2-,6--,4--,2--:6---,6----:6--,3--,1--,6---=3/16",),
 	("4--,4---:1-,6--,4--,1--:6---,6----:6--,3--,1--,6---=3/16", "3--,3---:3--,3---:3--,3---:6--,6---:6--,6---:7--,7---=1/8"),

 	# 11
 	("6--,6---=1/8", "6--,6---:6--,6---=1/16", "5--,5---:3--,3---:0=1/8", "0=1/4", "0=1/8", "0=1/16", "2--,2---=1/8"),
 	("0=1/4", "0=1/8", "0=1/16"),

 	# 13
 	("0=3/16", "3--,3---:3--,3---:0:3--,3---=1/16", "0:3--,3---=1/8","0=1/16", "3--:6--:1-:3-:6-:1=1/32", "1,6-,3-:1,6-,3-:1,6-,3-=1/8", "1,6-,4-=1/16", "1,6-,3-=1/8"),

 	# 14
 	("0=1/16", "3---:6-,4-,2-:6-,4-,2-:6-,4-=1/8", "2-:6-,4-,2-=1/16", "1,6-,3-=1/8", "0=1/16", "3---:1,6-,3-:1,6-,3-:1,6-,3-=1/8", "1,6-,4-=1/16", "1,6-,3-=1/8"),

 	# 15
 	("3---:6-,4-,2-:6-,3-,1-:5-#,3-,7--:3-,1-,6--=1/8", "0=1/16", "0=3/16", "3-,3--:3-,3--:3-,3--=1/8", "4-,4--=1/16", "3-,3--=3/16"),

 	# 16
 	("0=3/16", "2-,2--:2-,2--:2-,2--=1/8", "2-,2--=1/16", "3-,3--=1/8", "0=3/16", "3-,3--:3-,3--:3-,3--=1/8", "4-,4--=1/16", "3-,3--=1/8"),

 	# 17
 	("0=3/16", "2-,2--:1-,1--:7--,7---=1/8", "6--,6---=1/4", "-", "0=1/8", "0=1/16"),
 	("6--:3-:6-:1=1/16", "3=1/8",  "5--:2-:5-:7-=1/16", "2=1/8", "1--:5--:1-:3-=1/16", "5-=1/8", "5--:2-:5-:7-=1/16", "2=1/8",),

 	# 19
 	("5-:2:5:7=1/16", "2+=1/8", "7--:4-#:7-:2=1/16", "4#=1/8", "3-:7-:3:5=1/16" "7=1/8", "7--:3-:7-:3=1/16", "5=1/8"),
 	("3-:7-:3:5=1/16", "7=1/8", "2-:6-:2:4#=1/16", "6=1/8", "5-:2-:5-:7-=1/16", "2=1/8", "5-:1:3:5=1/16", "1+=1/8"),

 	# 21
 	("3-:7-:3:5=1/16", "7=1/8", "6-:3:6:1+=1/16", "6,1=1/8", "5,7:0=1/8", "6,1:4,6-=1/16", "3,5-=1/8", "0:4,6-=1/16", "2#,4-=1/8"),
 	("6---:3--:6--:1-:3-:6-:4--:1-:4-:6-:1:4:1--:5--:1-:3-:5-:1:5---:2--:5--:7--:2-:5-=1/16"),

 	# 23
 	("2--:6--:2-:4-:6-:2:6---:3--:6--:1-:3-:1:3--:7--:3-#:5-:3-#:7--:6---:3--:6--:1-:3-#:6-=1/16"),
 	("6---:1-","3-:6-:7-:1:4--:1-:4-:6-:7-:1:1--:5--:1-:3-:5-:1:5---:2--:5--:7--:2-:5-=1/16"),

 	# 25
  	("2--:6--:2-:2:3:4:6---:3--:6--:6-:7-:1:3--:7--:3-#:5-:3-#:7--=1/16"),
    ("6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:6--,6---:6--,6---:6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:0:6--,6---:6--,6---:6--,6---:6--,6---=1/16"),
    ("6---,6----=12/8",),

    # 28

)

import sys
sys.path.append('../')
import music_translate

music_parse = music_translate.music_trans([music_table, music_table_left], beat = 100, note_per = 8, move = 3)
music_parse.music_to_play_table()
music_parse.play_music()

